<template>
  <div>
    <nav>
      <ul>
        <router-link tag="li" to="/film" active-class="on">
          <i class="iconfont icon-dianyingpiaoiocn"></i>
          <span>首页</span>
        </router-link>
        <router-link tag="li" to="/cinema" active-class="on">
          <i class="iconfont icon-yingyuan"></i>
          <span>影院</span>
        </router-link>
        <router-link tag="li" to="/consult" active-class="on">
          <i class="iconfont icon-zixunliuyan"></i>
          <span>咨询</span>
        </router-link>
        <router-link tag="li" to="/mine" active-class="on">
          <i class="iconfont icon-yixianshi_huaban"></i>
          <span>我的</span>
        </router-link>
      </ul>
    </nav>
  </div>
</template>
<style lang='scss' scoped>
nav {
  border-top: 1px solid #ccc;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: white;
  text-align: center;
  ul {
    display: flex;
    list-style: none;
    margin-top: 5px;
    li {
      flex: 1;
      display: flex;
      flex-direction: column;
      i {
        font-size: 24px;
      }
      span {
        font-size: 12px;
      }
    }
  }
}
.on {
  color: #ff9462;
}
</style>